package com.ruoyi.system.service.zhaungxiuservice.shopService.impl;

import com.ruoyi.system.domain.zhuangxiumain.orderformMain.WarehouseProduct;
import com.ruoyi.system.mapper.zhuangxiumapper.orderformMapper.WarehouseProductMapper;
import com.ruoyi.system.service.zhaungxiuservice.shopService.WarehouseProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class WarehouseProductServiceImpl implements WarehouseProductService {


    @Autowired(required = false)
    private WarehouseProductMapper warehouseProductMapper;

    @Override
    public WarehouseProduct selectWarehouseProductById(Integer wpId)
    {
        return warehouseProductMapper.selectWarehouseProductById(wpId);
    }

    @Override
    public List<WarehouseProduct> selectWarehouseProductList(WarehouseProduct warehouseProduct)
    {
        return warehouseProductMapper.selectWarehouseProductList(warehouseProduct);
    }

    @Override
    public int insertWarehouseProduct(WarehouseProduct warehouseProduct)
    {
        return warehouseProductMapper.insertWarehouseProduct(warehouseProduct);
    }

    @Override
    public int updateWarehouseProduct(WarehouseProduct warehouseProduct)
    {
        return warehouseProductMapper.updateWarehouseProduct(warehouseProduct);
    }

    @Override
    public int deleteWarehouseProductByIds(Integer[] wpIds)
    {
        return warehouseProductMapper.deleteWarehouseProductByIds(wpIds);
    }

    @Override
    public int deleteWarehouseProductById(Integer wpId)
    {
        return warehouseProductMapper.deleteWarehouseProductById(wpId);
    }
}
